package com.sefonsoft.dataanalysis.service.impl${bmxt};

import org.jsoup.nodes.Document;
import org.springframework.stereotype.Service;

import com.sefonsoft.dataanalysis.model${bmxt}.${title};
import java.util.Map;
import com.sefonsoft.dataanalysis.service.impl.BaseService;
import com.sefonsoft.dataanalysis.service.model.Datas;

/**
 * ${tname}Service
 * @Date ${time}
 */
@Service
public class ${title}Service extends BaseService<${title}> {

	@Override
	public Datas<${title}> dataAnalysisByHtml(Document doc) {
		//Datas<${title}> datas = new Datas<${title}>();
		//${title} ${ti} = new ${title}();
		//${ti}.setId(Tools.createUUID());
		//datas.getDatas().add(${ti});
		//return datas;
		//TODO
		return null;
	}

	@Override
	public Class<${title}> getTClass() {
		return ${title}.class;
	}
	
	@Override
	public void generateMap(Map<String, Object> map) {
		//作查询条件组装
		
	}
	
	@Override
	public Datas<${title}> dataAnalysisByJson(String jsonStr) {
		/**
		 * 做json特殊处理
		 */
		return null;
	}
	
	@Override
	public Type getSourceType() {
		return Type.HTML;
	}
	
}
